﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SharedUtils
{
    public class InputType
    {
        public enum InputName
        {
            Tap,
            DoubleTap,
            SwipeLeft,
            SwipeRight,
            SwipeUp,
            SwipeDown,
            Hold,
            Timed,
            None
        }

        public InputName inputName { get; set; }
        public float deltaTime { get; set; }       // in seconds

        public InputType(InputName inputName, float deltaTime)
        {
            this.inputName = inputName;
            this.deltaTime = deltaTime;
        }

        public InputType(InputName inputName)
        {
            this.inputName = inputName;
            this.deltaTime = -1.0f;
        }

        // DEFAULT CONSTRUCTOR
        public InputType()
        {
            this.inputName = InputName.None;
            this.deltaTime = 0.0f;
        }
    }
}
